package com.coment.message;


import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.data.annotation.Transient;

import java.util.ArrayList;
import java.util.List;

@ToString
@NoArgsConstructor
@AllArgsConstructor
public class InjuryMessage {
    /// 攻击者
    public String rolesId;

    ///  未通过的检验 [1.体力, 2.存活, 3.攻速]
    public Integer verificationResults;

    /// 目标信息 {@link HurtInfo }
    public List<HurtInfo> hurtInfoList = new ArrayList<>();

    @Transient
    @JsonIgnore
    public boolean isOk() {
        return verificationResults == null;
    }
}
